﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SistemaDeCompras.Service;

namespace SistemaDeCompras
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        //ServiceReference1.Fachada servicio;
        Service.Fachada servicio;

        private void button1_Click(object sender, EventArgs e)
        {

            servicio = new FachadaClient();
            InsumosService[] mt = servicio.GetInsumos();
            dataGridView1.DataSource = mt;
          
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        
    }
}
